#include <mpi.h>
#include <stdio.h>

#include "utils.h"


int main(int argc, char** argv)
{
	struct MPI_Info info;
	struct matrix_t* mat;
	struct matrix_t* smat;

	MPI_Init(&argc, &argv);

	get_mpi_info(&info);
	alloc_matrix(&mat, 8, 8);
	set_elem(mat, 1, 1, 2);
	set_elem(mat, 3, 4, 707);
	sub_matrix(mat, &smat, 3, 4, 3, 4);
	printf("smat[%d][%d]=%ld\n", 0, 1, get_elem(smat, 0, 1));

	MPI_Barrier(MPI_COMM_WORLD);
	MPI_Finalize();

	return 0;
}
